import request from '@/utils/request'

// 查询工序人员列表
export function listBizProcessUser (query) {
  return request({
    url: '/biz/bizProcessUser/list',
    method: 'get',
    params: query
  })
}

// 查询工序人员详细
export function getBizProcessUser (id) {
  return request({
    url: '/biz/bizProcessUser/' + id,
    method: 'get'
  })
}

// 新增工序人员
export function addBizProcessUser (data) {
  return request({
    url: '/biz/bizProcessUser',
    method: 'post',
    data: data
  })
}

// 修改工序人员
export function updateBizProcessUser (data) {
  return request({
    url: '/biz/bizProcessUser',
    method: 'put',
    data: data
  })
}

// 删除工序人员
export function delBizProcessUser (id) {
  return request({
    url: '/biz/bizProcessUser/' + id,
    method: 'delete'
  })
}


// 导出工序人员
export function exportBizProcessUser (query) {
  return request({
    url: '/biz/bizProcessUser/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizProcessUser/getInitData/' + dictTypes,
    method: 'get'
  })
}
